﻿namespace WMS6.Web.BaseInfoDetailServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="InvSkuLocInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class InvSkuLocInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private decimal AllocatedQtyField;
        [OptionalField]
        private int AllowReplenishFromBulkField;
        [OptionalField]
        private int AllowReplenishFromCasepickField;
        [OptionalField]
        private int AllowReplenishFromPiecepickField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private decimal ExpectedQtyField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string LocationTypeDField;
        [OptionalField]
        private string LocationTypeField;
        [OptionalField]
        private string LocationUomField;
        [OptionalField]
        private string LocField;
        [OptionalField]
        private string OptAddDelFlagField;
        [OptionalField]
        private string OptBatchidField;
        [OptionalField]
        private string OptSequenceField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private decimal PickedQtyField;
        [OptionalField]
        private decimal QtyField;
        [OptionalField]
        private decimal QtyLocationLimitField;
        [OptionalField]
        private decimal QtyLocationMinimumField;
        [OptionalField]
        private decimal QtyPickInprocessField;
        [OptionalField]
        private decimal QtyReplenishmentOverrideField;
        [OptionalField]
        private decimal ReplenishmentCasecntField;
        [OptionalField]
        private string ReplenishmentPriorityField;
        [OptionalField]
        private decimal ReplenishmentQtyField;
        [OptionalField]
        private decimal ReplenishmentSeverityField;
        [OptionalField]
        private string ReplenishmentUomDField;
        [OptionalField]
        private string ReplenishmentUomField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string SkuIDField;
        [OptionalField]
        private string TodoUserField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public decimal AllocatedQty
        {
            get
            {
                return this.AllocatedQtyField;
            }
            set
            {
                if (!this.AllocatedQtyField.Equals(value))
                {
                    this.AllocatedQtyField = value;
                    this.RaisePropertyChanged("AllocatedQty");
                }
            }
        }

        [DataMember]
        public int AllowReplenishFromBulk
        {
            get
            {
                return this.AllowReplenishFromBulkField;
            }
            set
            {
                if (!this.AllowReplenishFromBulkField.Equals(value))
                {
                    this.AllowReplenishFromBulkField = value;
                    this.RaisePropertyChanged("AllowReplenishFromBulk");
                }
            }
        }

        [DataMember]
        public int AllowReplenishFromCasepick
        {
            get
            {
                return this.AllowReplenishFromCasepickField;
            }
            set
            {
                if (!this.AllowReplenishFromCasepickField.Equals(value))
                {
                    this.AllowReplenishFromCasepickField = value;
                    this.RaisePropertyChanged("AllowReplenishFromCasepick");
                }
            }
        }

        [DataMember]
        public int AllowReplenishFromPiecepick
        {
            get
            {
                return this.AllowReplenishFromPiecepickField;
            }
            set
            {
                if (!this.AllowReplenishFromPiecepickField.Equals(value))
                {
                    this.AllowReplenishFromPiecepickField = value;
                    this.RaisePropertyChanged("AllowReplenishFromPiecepick");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public decimal ExpectedQty
        {
            get
            {
                return this.ExpectedQtyField;
            }
            set
            {
                if (!this.ExpectedQtyField.Equals(value))
                {
                    this.ExpectedQtyField = value;
                    this.RaisePropertyChanged("ExpectedQty");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string Loc
        {
            get
            {
                return this.LocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocField, value))
                {
                    this.LocField = value;
                    this.RaisePropertyChanged("Loc");
                }
            }
        }

        [DataMember]
        public string LocationType
        {
            get
            {
                return this.LocationTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocationTypeField, value))
                {
                    this.LocationTypeField = value;
                    this.RaisePropertyChanged("LocationType");
                }
            }
        }

        [DataMember]
        public string LocationTypeD
        {
            get
            {
                return this.LocationTypeDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocationTypeDField, value))
                {
                    this.LocationTypeDField = value;
                    this.RaisePropertyChanged("LocationTypeD");
                }
            }
        }

        [DataMember]
        public string LocationUom
        {
            get
            {
                return this.LocationUomField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocationUomField, value))
                {
                    this.LocationUomField = value;
                    this.RaisePropertyChanged("LocationUom");
                }
            }
        }

        [DataMember]
        public string OptAddDelFlag
        {
            get
            {
                return this.OptAddDelFlagField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OptAddDelFlagField, value))
                {
                    this.OptAddDelFlagField = value;
                    this.RaisePropertyChanged("OptAddDelFlag");
                }
            }
        }

        [DataMember]
        public string OptBatchid
        {
            get
            {
                return this.OptBatchidField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OptBatchidField, value))
                {
                    this.OptBatchidField = value;
                    this.RaisePropertyChanged("OptBatchid");
                }
            }
        }

        [DataMember]
        public string OptSequence
        {
            get
            {
                return this.OptSequenceField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OptSequenceField, value))
                {
                    this.OptSequenceField = value;
                    this.RaisePropertyChanged("OptSequence");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public decimal PickedQty
        {
            get
            {
                return this.PickedQtyField;
            }
            set
            {
                if (!this.PickedQtyField.Equals(value))
                {
                    this.PickedQtyField = value;
                    this.RaisePropertyChanged("PickedQty");
                }
            }
        }

        [DataMember]
        public decimal Qty
        {
            get
            {
                return this.QtyField;
            }
            set
            {
                if (!this.QtyField.Equals(value))
                {
                    this.QtyField = value;
                    this.RaisePropertyChanged("Qty");
                }
            }
        }

        [DataMember]
        public decimal QtyLocationLimit
        {
            get
            {
                return this.QtyLocationLimitField;
            }
            set
            {
                if (!this.QtyLocationLimitField.Equals(value))
                {
                    this.QtyLocationLimitField = value;
                    this.RaisePropertyChanged("QtyLocationLimit");
                }
            }
        }

        [DataMember]
        public decimal QtyLocationMinimum
        {
            get
            {
                return this.QtyLocationMinimumField;
            }
            set
            {
                if (!this.QtyLocationMinimumField.Equals(value))
                {
                    this.QtyLocationMinimumField = value;
                    this.RaisePropertyChanged("QtyLocationMinimum");
                }
            }
        }

        [DataMember]
        public decimal QtyPickInprocess
        {
            get
            {
                return this.QtyPickInprocessField;
            }
            set
            {
                if (!this.QtyPickInprocessField.Equals(value))
                {
                    this.QtyPickInprocessField = value;
                    this.RaisePropertyChanged("QtyPickInprocess");
                }
            }
        }

        [DataMember]
        public decimal QtyReplenishmentOverride
        {
            get
            {
                return this.QtyReplenishmentOverrideField;
            }
            set
            {
                if (!this.QtyReplenishmentOverrideField.Equals(value))
                {
                    this.QtyReplenishmentOverrideField = value;
                    this.RaisePropertyChanged("QtyReplenishmentOverride");
                }
            }
        }

        [DataMember]
        public decimal ReplenishmentCasecnt
        {
            get
            {
                return this.ReplenishmentCasecntField;
            }
            set
            {
                if (!this.ReplenishmentCasecntField.Equals(value))
                {
                    this.ReplenishmentCasecntField = value;
                    this.RaisePropertyChanged("ReplenishmentCasecnt");
                }
            }
        }

        [DataMember]
        public string ReplenishmentPriority
        {
            get
            {
                return this.ReplenishmentPriorityField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReplenishmentPriorityField, value))
                {
                    this.ReplenishmentPriorityField = value;
                    this.RaisePropertyChanged("ReplenishmentPriority");
                }
            }
        }

        [DataMember]
        public decimal ReplenishmentQty
        {
            get
            {
                return this.ReplenishmentQtyField;
            }
            set
            {
                if (!this.ReplenishmentQtyField.Equals(value))
                {
                    this.ReplenishmentQtyField = value;
                    this.RaisePropertyChanged("ReplenishmentQty");
                }
            }
        }

        [DataMember]
        public decimal ReplenishmentSeverity
        {
            get
            {
                return this.ReplenishmentSeverityField;
            }
            set
            {
                if (!this.ReplenishmentSeverityField.Equals(value))
                {
                    this.ReplenishmentSeverityField = value;
                    this.RaisePropertyChanged("ReplenishmentSeverity");
                }
            }
        }

        [DataMember]
        public string ReplenishmentUom
        {
            get
            {
                return this.ReplenishmentUomField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReplenishmentUomField, value))
                {
                    this.ReplenishmentUomField = value;
                    this.RaisePropertyChanged("ReplenishmentUom");
                }
            }
        }

        [DataMember]
        public string ReplenishmentUomD
        {
            get
            {
                return this.ReplenishmentUomDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReplenishmentUomDField, value))
                {
                    this.ReplenishmentUomDField = value;
                    this.RaisePropertyChanged("ReplenishmentUomD");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string SkuID
        {
            get
            {
                return this.SkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuIDField, value))
                {
                    this.SkuIDField = value;
                    this.RaisePropertyChanged("SkuID");
                }
            }
        }

        [DataMember]
        public string TodoUser
        {
            get
            {
                return this.TodoUserField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TodoUserField, value))
                {
                    this.TodoUserField = value;
                    this.RaisePropertyChanged("TodoUser");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

